/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import org.primefaces.model.tagcloud.DefaultTagCloudItem;
import org.primefaces.model.tagcloud.DefaultTagCloudModel;
import org.primefaces.model.tagcloud.TagCloudModel;

/**
 *
 * @author alexander
 */
@ManagedBean (name="tagBean")
@RequestScoped
public class TagBean {

  private TagCloudModel model;  
  
    public TagBean() {  
        model = new DefaultTagCloudModel();  
        model.addTag(new DefaultTagCloudItem("Action", "#", 1));  
        model.addTag(new DefaultTagCloudItem("ANIME", "#", 3));  
        model.addTag(new DefaultTagCloudItem("cars", "#", 2));  
        model.addTag(new DefaultTagCloudItem("Sports", "#", 5));  
        model.addTag(new DefaultTagCloudItem("house", "#", 4));  
        model.addTag(new DefaultTagCloudItem("INTERNET", "#", 2));  
        model.addTag(new DefaultTagCloudItem("Shop", "#", 5));  
        model.addTag(new DefaultTagCloudItem("Mobile", "#", 3));  
        model.addTag(new DefaultTagCloudItem("foot", "#", 4));  
        model.addTag(new DefaultTagCloudItem("Music", "#", 1));  
    }  
  
    public TagCloudModel getModel() {  
        return model;  
    }  
}
